package com.ruitu.ssmic.ui;

import android.os.Bundle;
import androidx.fragment.app.FragmentTransaction;

import com.ruitu.arad.base.BaseActivity;
import com.ruitu.ssmic.R;

public class Test1Activity extends BaseActivity {

    @Override
    protected int getLayoutRes() {
        return R.layout.activity_test1;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setHeadTitle("测试Fragment弹窗");

        if (null == savedInstanceState) {
            FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
            ft.replace(R.id.container, Test1Fragment.newInstance());
            ft.commit();
        }
    }
}
